export LANG="C"
# 设置 BootJDK
export ALT_BOOTDIR=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
# 让 make 找到 Ant
export ALT_ANT_HOME=/Users/dengyouxu/Software/apache-ant-1.8.4
export ALT_JDK_IMPORT_PATH=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
# CUPS
export ALT_CUPS_HEADERS_PATH=/Users/dengyouxu/Software/cups-2.3.6
export ALLOW_DOWNLOADS=true
export HOTSPOT_BUILD_JOBS=8 # 编译线程数, 与CPU核数一致即可
export ALT_PARALLEL_COMPILE_JOBS=8

export CC=clang
export COMPILER_WARNINGS_FATAL=false
export USE_CLANG=true
export LP64=1
# 生成 debug 版本
export SKIP_DEBUG_BUILD=false
export DEV_ONLY=true
export USE_PRECOMPILED_HEADER=true

export LFLAGS='-Xlinker -lc++ -lstdc++'

export BUILD_LANGTOOLS=true
export BUILD_JAXP=true
export BUILD_JAXWS=true
export BUILD_CORBA=true
export BUILD_HOTSPOT=true
export BUILD_JDK=true

export BUILD_DEPLOY=false # 取消构建部署和安装包
export BUILD_INSTALL=false
unset JAVA_HOME
unset CLASSPATH

export SDKPATH=`${XCODEBUILD:-xcodebuild} -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'`

#make clean
make V=1 2>&1 debug_build | tee build_macos.log
